* Please set the location of these globals based on file paths on your computer
global datatemp ""
global data ""
global output ""
global dofile ""

* Data creation 
do "$dofile/create1.do" /* Creates "$datatemp/numwomen_1544_89cens_official.dta". Represents number of women age 15 to 44 in each oblast and in each year. Creates birthplace_codes.dta. Represents the conversion between names and codes of oblast, and classifies oblasts into early and late adopters.*/
do "$dofile/create2.do" /* Creates "$datatemp/gfr_90_repl.dta". Number of births and women from 1990-1993 by oblast. */
do "$dofile/create3.do" /* Creates "$datatemp/covars_oblast.dta". Co-variates at the year and oblast level from the "Narodnoe Hozjajstvo" yearbooks. */
do "$dofile/create4.do" /* Creates "$datatemp/women1544_79cens.dta". Number of urban, rural women ages 15 to 44 by oblast in 1979. */
do "$dofile/create5.do" /* Creates "$datatemp/urb_educ_vars.dta". Counts by educational categories by oblast in 1979, and number of urban, rural women ages 15 to 44 by oblast in 1979.*/
do "$dofile/create6.do" /* Creates "$datatemp/rosstat_allvars.dta" Final data file 1. (Data dictionary in Readme). */
do "$dofile/create7.do" /* Creates "$datatemp/gfr_adjusted.dta". Final data file 2. (Data dictionary in Readme). */
do "$dofile/create8.do" /* Creates "$datatemp/outcomes_2010_oblast.dta". Final data file 3. (Data dictionary in Readme). */

* Create the tables and figures in the paper 
do "$dofile/alltables.do" /* Creates all tables. */
do "$dofile/allfigures.do" /* Creates all figures. */
* Uses data that are not publicly available. Cannot run this code unless use the data on site.
do "$dofile/table4.do" /* Creates table 4. Uses the 1994 Microcensus that is not publicly available. Thus, I do not provide data-files for this analysis. */




